package com.example.myproject.web;

import com.example.myproject.util.MappingTable;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2018/6/19.
 */
@RestController
@RequestMapping("/emum")
public class EnumController {
    @RequestMapping("/test") //默认返回"BPM_WORKFLOW_DEF"
    public  Map<MappingTable,String> test() {
        Map<MappingTable,String> map = new HashMap<>();
        map.put(MappingTable.PRO_PROPERTY_KEY,"23");
        return map;
    }
}
